/**
 * @author maulin
 */
dojo.provide("medryx.model.Provider");

dojo.require("medryx.model.Entity");
dojo.require("medryx.orm.Property");

dojo.declare("medryx.model.Provider", medryx.model.Entity, {
	fullName:new medryx.orm.Property(),
	firstName:new medryx.orm.Property(),
	middleName:new medryx.orm.Property(),
	lastName:new medryx.orm.Property(),
	specialties:new medryx.orm.Property(), //a collection of strings is just a property
	image:new medryx.orm.Property(),
	
	queries: [
       {name:"All", parameters:{
        properties:["*"],
        sort:["lastName", "firstName"]
       }}
    ],
	
	toString:function() {
		return this.fullName;
	}
});
